num = range(100,1000)
for i in num:
    a = i//100
    b = i%100
    c = i//10%10
    if (a**3+b**3+c**3==i):
        print(i)
# reversed 反转
# 业务题